package abcy.cloud.authenticationserver.mappers;

import abcy.cloud.authenticationserver.dto.req.OauthAccessTokenSelectReq;
import abcy.cloud.authenticationserver.dto.req.OauthAccessTokenUpdateReq;
import abcy.cloud.authenticationserver.entities.OauthAccessToken;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface OauthAccessTokenMapper extends BaseMapper<OauthAccessToken> {

    String getRefreshToken(@Param("token") OauthAccessTokenSelectReq oauthAccessTokenSelectReq);

    void updateRefreshToken(@Param("token") OauthAccessTokenUpdateReq oauthAccessTokenUpdateReq);

    String getTokenInfo(@Param("token")OauthAccessTokenSelectReq oauthAccessTokenSelectReq);
}